package dawi.fcs.servicio.servicio.impl;

import java.util.HashMap;
import java.util.List;

import dawi.fcs.dominio.dto.DtoExpedienteParte;
import dawi.fcs.servicio.dao.ExpedienteParteDao;
import dawi.fcs.servicio.factory.DAOFactory;
import dawi.fcs.servicio.generico.GenericoServicioImpl;
import dawi.fcs.servicio.servicio.ExpedienteParteServicio;

public class ExpedienteParteServicioImpl extends GenericoServicioImpl implements
		ExpedienteParteServicio {
	ExpedienteParteDao dao;

	public ExpedienteParteServicioImpl() {
		dao = DAOFactory.getFactorty(DAOFactory.MYSQL).getExpedienteParteDao();
		this.setGenericoDao(dao);
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	@Override
	public List<DtoExpedienteParte> listarPartes(String expediente) {
		HashMap<String, Object> map = new HashMap<String, Object>();
		map.put("nro_expediente", expediente);
		List list = dao.listarPorQuery("expedienteParte.listarPaginacion", map);
		return list;
	}

}
